package com.mrroman.linksender.passdb;

import java.net.PasswordAuthentication;
import java.util.Map;

import com.mrroman.linksender.ioc.Name;

@Name("passdb.PasswordStorage")
public interface PasswordStorage {

	/**
	 * Read password database from source.
	 * 
	 * @return
	 */
	public Map<String, PasswordAuthentication> readDatabase();

	/**
	 * Persist password database.
	 * 	
	 * @param database
	 */
	public void writeDatabase(Map<String, PasswordAuthentication> database);

}